logical operators in java

89

logical operators in java -

-----------------------------------
| Logical Operato | Java Operator |       boolean wakeupTime = true;
-----------------------------------	      boolean sleeping = false;
|       AND       |       &&      |       if(wakeupTime && !sleeping){
|       OR        |       ||      |           makeCoffee();
|       NOT       |       !       |       }
-----------------------------------

Comments

Submit
0 Comments